{{#if isPrimitiveType}}
`{{dataTypeForDocs}}`
{{~else}}
    {{#if isModel}}
        {{#if hasVars}}
[`{{dataTypeForDocs}}`](./{{packageName}}/type/{{modelFilename}}.py)
        {{~else}}
            {{#if isStrictlyObject}}
[`{{dataTypeForDocs}}`](./{{packageName}}/type/{{modelFilename}}.py)
            {{else}}
                {{#if composedSchemas}}
                    {{#with composedSchemas}}
                    {{#if allOf}}
                        {{#if hasMultipleAllOf}}
Union[{{#each allOf}}{{> api_doc_param_data_type}}{{#unless @last}}, {{/unless}}{{~/each}}]
                        {{else}}
{{#each allOf}}{{> api_doc_param_data_type}}{{~/each}}
                        {{/if}}
                    {{~/if}}
                    {{#if anyOf}}
                        {{#if hasMultipleAnyOf}}
Union[{{#each anyOf}}{{> api_doc_param_data_type}}{{#unless @last}}, {{/unless}}{{/each}}]
                        {{else}}
{{#each anyOf}}{{> api_doc_param_data_type}}{{/each}}
                        {{/if}}
                    {{~/if}}
                    {{#if oneOf}}
                        {{#if hasMultipleOneOf}}
Union[{{#each oneOf}}{{> api_doc_param_data_type}}{{#unless @last}}, {{/unless}}{{/each}}]
                        {{else}}
{{#each oneOf}}{{> api_doc_param_data_type}}{{/each}}
                        {{/if}}
                    {{/if}}
                    {{~/with}}
                {{else}}
`{{dataTypeForDocs}}`
                {{~/if}}
            {{~/if}}
        {{/if}}
    {{else}}
        {{#if isArray}}
            {{#with items}}
List[{{> api_doc_param_data_type}}]
            {{~/with}}
        {{else}}
            {{#if isFreeFormObject}}
`{{dataTypeForDocs}}`
            {{~else}}
[`{{dataTypeForDocs}}`](./{{packageName}}/type/{{modelFilename}}.py)
            {{~/if}}
        {{/if}}
    {{/if}}
{{/if}}